<?php
namespace backend\models;

use yii\base\Model;
use backend\models\Goods;

/**
 * Signup form
 */
class GoodsForm extends Model
{
        public $id;
        public $goodsid;
        public $goodsno;
        public $gys;
        public $nextid;
        public $goodsname;
        public $class;
        public $createtime;
        public $updatetime;
        public $inprice;
        public $lastprice;
        public $upfee;
        public $remark;
        public $check;
        public $export;
        public $priceunit;
        public $progress;


    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['goodsid', 'goodsno', 'gys', 'nextid', 'goodsname', 'class', 'createtime', 'inprice'], 'required'],
            [['gys', 'nextid', 'class', 'check', 'priceunit'], 'integer'],
            [['createtime', 'updatetime'], 'safe'],
            [['inprice', 'lastprice', 'upfee'], 'number'],
            [[ 'progress'], 'string'],
            [['export'], 'boolean'],
            [['goodsid', 'goodsno'], 'string', 'max' => 20],
            [['goodsname'], 'string', 'max' => 200],
            [['remark'], 'string', 'max' => 50],
        ];
    }
    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'goodsid' => 'SKU',
            'goodsno' => '货品编号',
            'gys' => '供应商',
            'nextid' => '运营id',
            'goodsname' => '商品名称',
            'class' => '类别',
            'createtime' => '上传时间',
            'updatetime' => '更新时间',
            'inprice' => '进货价',
            'lastprice' => '上次价格',
            'upfee' => '上涨幅度',
            'remark' => '备注',
            'check' => '审核状态',
            'export' => '是否导出',
            'priceunit' => '币种',
            'progress' => '审核进度',
        ];
    }



}
